<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.png" />
    <button @click="goHome">返回首页</button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const goHome = () => {
  router.push('/home')
}
</script>

<style lang="scss" scoped>
  .box {
    width: 100vw;
    height: 100vh;
    background: yellowgreen;
    display: flex;
    justify-content: center;
    img {
      width: 400px;
      height: 823px;
    }
    button {
      width: 50px;
      height: 50px;
    }
  }
</style>
